package com.xbongbong.pro.statistic.pojo;

import com.xbongbong.pro.enums.TimeTypeEnum;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;

/**
 * 时间pojo
 * @author zcp
 * @version v1.0
 * @date 2019/4/17 21:36
 * @since v1.0
 */
@Getter
@Setter
@ToString
public class TimePojo implements Serializable {
    private static final long serialVersionUID = 3047430409058343463L;

    /**
     * 筛选时间类型
     * @see TimeTypeEnum 枚举内存放
     */
    private Integer timeType;
    /**
     * timeType对应的 开始时间
     */
    private Integer startTime;
    /**
     * timeType对应的 结束时间
     */
    private Integer endTime;

    public TimePojo() {

    }

    public TimePojo(Integer timeType, Integer startTime, Integer endTime) {
        this.timeType = timeType;
        this.startTime = startTime;
        this.endTime = endTime;
    }
}
